#ifndef TCPUI_H
#define TCPUI_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
class TcpUI : public QWidget
{
    Q_OBJECT
public:
    explicit TcpUI(QWidget *parent = 0);
    void GetWifiStatus(bool);
protected:
    bool eventFilter(QObject *watched, QEvent *event);
signals:
    void SendConnectStatus(bool);
    void    CallKeyBoard(const QString&,int);
public slots:
    void    ReceiveKeyBoardData(const QString&,const QString&);
    void    SwitchLang(int type);

private:
    QPushButton *m_Connect;
    QPushButton *m_Cancel;
    QLineEdit *m_editPort;
    QLineEdit *m_editIp;
    QLabel *m_labelIp;
    QLabel *m_labelPort;
    QLabel *m_labelNote;
    bool    m_TcpStatus;
    int     m_langType;
};

#endif // TCPUI_H
